package ru.nnstu.medialib.service;

import java.util.List;

import ru.nnstu.medialib.dao.SongDAO;
import ru.nnstu.medialib.dao.SongDAOImpl;
import ru.nnstu.medialib.domain.Song;

public class SongServiceImpl implements SongService {
	SongDAO songDAO;

	public SongServiceImpl() {
		super();
		songDAO = new SongDAOImpl();
	}

	@Override
	public void addSong(Song song) {
		songDAO.saveSong(song);
	}

	@Override
	public List<Song> listSong() {
		return songDAO.listSong();
	}

	@Override
	public void removeSong(Long id) {
		songDAO.removeSong(id);
	}

}
